package moonlander;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;


public class LanderFrame extends JFrame {

	static JLabel status =new JLabel();;
	
	public LanderFrame() {
		super("Moon Lander");
		LanderCanvas canvas = new LanderCanvas();
		setLayout(new BorderLayout());
		add(canvas, BorderLayout.CENTER);
		addKeyListener(new MoonKeyListener());
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		MoonKeyListener moon=new MoonKeyListener();
		
		status.setText("Fuel Remaining: 100 litres");
		add(status, BorderLayout.SOUTH);
		pack();
		setResizable(false);
		setVisible(true);
		
		canvas.createBufferStrategy( 2 );
		
		}

	public static void main (String [] args){
		new LanderFrame();
		
	}

}
